﻿using Nancy;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class QuickAccessModule : CockpitModule
    {
        public QuickAccessModule()
            : base("qaccess")
        {
            Get["/{id:int}"] = parameters => Response.AsJson(new QuickAccessService().GetQuickAccess((int)parameters.id));
        }
    }
}